package com.nyist.myticket.biz.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nyist.myticket.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author yangxiaogen
 * @since 2021-01-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)// 防止出现只打印子类的toString方法
@ApiModel(value="TbUser对象", description="")
@TableName("tb_user")
public class User extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "邮箱")
    private String mail;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "城市编码")
    private String cityCode;

    @ApiModelProperty(value = "城市编码")
    @TableField(exist = false)
    private List<FileRel> fileRels;

}
